package net.huashitong.ssydt.provider.msg.service;

import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.msg.entity.SsMsgRemindConfig;
import net.huashitong.ssydt.provider.msg.mapper.SsMsgRemindConfigMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.11.14
 */
@Service
@Transactional
public class SsMsgRemindConfigServiceImpl extends AbstractLongService<SsMsgRemindConfig> implements SsMsgRemindConfigService {

    private SsMsgRemindConfigMapper mapper;

    @Autowired
    public SsMsgRemindConfigServiceImpl(SsMsgRemindConfigMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsMsgRemindConfig> getLongMapper() {
        return mapper;
    }

    @Override
    public SsMsgRemindConfig getByUserId(String userId) {
        return this.mapper.getByUserId(userId);
    }
}
